<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$pagetitle}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
</head>
<body>

<form action="{:url()}" method="post" class="form-horizontal" onsubmit="return save_form2(this)">
    <input type="hidden" name="pubid" value="{$pubid}">
    <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline">
                <input type="text" lay-verify="required" name="title" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-inline">
                <select name="catid" class="layui-input">
                    <option>台风</option>
                    <option>暴雨</option>
                    {foreach $adCat as $v}
                    <option value="{$v.catid}" <?=$v['catid']==$catid?'selected':''?>>{$v.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-inline">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th width="3%"><input type="checkbox" value="0" class="checkall" lay-ignore></input</th>
                        <th width="20%">学校名称</th>
                        <th width="20%">地址类型</th>
                        <th width="10%">所在区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td style="text-align: center;"><input type='checkbox' class="chekboxs" name="ids[]" lay-ignore value="{$v.id}"></td>
                        <td class="center">上海大学</td>
                        <td class="center tab-title">地质沉降区</td>
                        <td class="center">宝山区</td>

                    </tr>

                    </tbody>
                </table>
                <button type="button" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe640;</i></button>
                <a class="layui-btn layui-btn-primary layui-btn-sm iframe" href="?temp=add1_iframe" data-width="80%" data-height="90%" ><i class="layui-icon">&#xe654;</i></a>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详细要求</label>
            <div class="layui-input-inline">
                <textarea style="height: 300px" name="link" autocomplete="off" class="layui-input"></textarea>
            </div>
        </div>

        <div class="layui-form-item layui-layout-admin" style="margin-top: 30px;">
            <div class="layui-input-block">
                <div class="layui-footer" style="left: 0;">
                    <button class="layui-btn" type="submit"  lay-filter="component-form-element">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary close">关闭</button>
                </div>
            </div>
        </div>
    </div>
</form>
  <!--文件上传ajax调用的接口地址-->
  <script>
    var upload_index="{:url('file/index')}";
    var upload_add="{:url('file/add')}";
    var upload_config="{:url('file/uploadConfig')}";
  </script>    
<script src="/static/admin/layui/layui.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/globals.js"></script>
<!--文件上传 start-->
<script type="text/javascript" src="/static/webuploader/kinderfile.js"></script>
<script type="text/javascript" src="/static/webuploader/Sortable.js"></script>
<script type="text/javascript" src="/static/webuploader/morepic.js"></script>


<!--以下是针对 快速上传单个文件插件-->
<link rel="stylesheet" type="text/css" href="/static/webuploader/style/webuploader.css" />
<link rel="stylesheet" type="text/css" href="/static/webuploader/style/style.css" />
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/static/webuploader/fastupimg.js"></script>
<!--文件上传 end-->
<!--文件上传的预览功能中中也需要用到我 fancybox plus start-->
<link rel="stylesheet" type="text/css" href="/static/fancybox3/jquery.fancybox.min.css" media="screen" />	

<script type="text/javascript" src="/static/fancybox3/jquery.fancybox.min.js"></script>
<!--文件上传的预览功能中中也需要用到我 fancybox plus end-->
<script>
    layui.config({
        base: '/static/admin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form;
    })
</script>
</body>
</html>